package com.hundsun.s3.mrs.core.handler;

import com.hundsun.s3.mrs.core.IParamsIn;
import com.hundsun.s3.mrs.core.IParamsOut;
import com.hundsun.s3.mrs.core.chain.IChain;
import com.hundsun.s3.mrs.core.task.Task;
import com.hundsun.s3.mrs.core.type.MessageType;

public class VideoMsgHandler implements IHandler {

	@Override
	public void doHandle(IParamsIn in, IParamsOut out, IChain chain) {
		Task task = (Task) in;
		String messageType = task.getMessage().getMessageType();
		if(messageType.equals(MessageType.TYPE_VIDEO)) {
			System.out.println("VideoMsgHandler执行");
			chain.setIndex(0);
		} else {
			chain.doHandle(task, out, chain);
		}
	}

}
